import time

from ykaolx.Base.Base import Base
from selenium.webdriver.common.by import By
class Page(Base):
    dz='https://www.jiuxian.com/'
    qdl=(By.XPATH,'/html/body/div[2]/div/div[1]/div/a[1]')
    zh=(By.XPATH,'//*[@id="userName"]')
    mm=(By.XPATH,'//*[@id="password"]')
    dl=(By.XPATH,'//*[@id="save"]')
    qd=(By.XPATH,'//*[@id="bindSub"]')
    sr=(By.XPATH,'//*[@id="wd"]')
    def yx(self):
        self.get_url(self.dz)
        time.sleep(2)
        self.click(self.qdl)
        time.sleep(2)
        self.send_keys(self.zh,'15649920329')
        self.send_keys(self.mm,'Ycy20040102')
        time.sleep(20)
        self.click(self.dl)
        time.sleep(2)
        self.click(self.qd)
        time.sleep(2)
        self.send_keys(self.sr,'剑南春')
        time.sleep(2)